Repository navigation
Add task intake records and question prompts for inference workflows - #706
jiangkuaixue123 wants to merge 28 commits into
Conversation
… gate A vague request such as "make the service faster without losing quality" reaches campaign start with no record of which conditions the user stated. Add a host-independent intake record that a question card and a numbered text fallback both write, so missing inputs are asked once and kept. - apps/cli/intake_contract.py: pure functions for question selection by batch and dependency, answers, stale and duplicate rejection, frozen gate comparison and the derived allowed next stages. - task-performance and task-day-0 field specs next to their skills. - task intake evaluate / answer / summary commands. - campaign start --intake refuses an incomplete task-performance record before writing anything and retains the gated record with its digest. An acceptance value is confirmed only when its declared source is the acceptance issue or the frozen gate record; a card answer stays a proposal and does not unblock candidate search. Without --intake, campaign start warns and proceeds as before. Agent-assisted-by: Claude Code / claude-fable-5-2 [effort=xhigh] (author) Co-Authored-By: Claude Fable 5.2 <[email protected]> Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Claude Code / claude-fable-5-2 [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
Signed-off-by: jiangkuaixue123 <[email protected]>
Skill evaluationPLANNED: not executed; there are no task outcomes yet.
Author verification steps (nonpaid; not yet run)
python tools/build_skill_index.py --source-revision 6f5775d29d3546732113900ef811d60a5943aa62 --checkThe declared source pin matches this head's canonical library bytes. The command has not run: retain its exit code and full drift/success output. It checks the generated projection, not claim truth or skill efficacy. Evidence and logs · Retention: 30 days. Plan bindings, budget, frozen exam and advisory detailsAdvisory: obtain missing evidenceRetained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Model/settings:
Automatic execution / cumulative PR budget: {"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}Projection check selection (not an executed result): {"declared_in":"src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json","source_revision":"6f5775d29d3546732113900ef811d60a5943aa62","status":"ready"}Provider/settings: Uncovered / unsupported paths (48)
|
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
An intake conflict still cannot be resolved through the stated question workflow. This is separate from the already announced acceptance-source binding update.
Keep workspace choices as suggestions, ask outstanding questions through the desktop host, and bind acceptance values to an independently selected issue or frozen snapshot. Re-evaluate existing intake records at campaign start. Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
The revision-specific brief is useful. One execution-value validation gap remains in this draft; see the inline note.
…view Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
|
Codex, acting for @jiangkuaixue123. @david6666666 @Dong1017 @zengchuang-hw 麻烦评审这个版本
PR 描述中的桌面验证记录 列出了四轮六问和代答。304 项专项测试通过。本机全量测试的 136 个失败用例与干净基线逐项一致。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Dong-bot (authorized delegate for Dong1017), first review of base 51e475ad077ec88d60f9e8c561dc0415ca9855aa and head cebe9271fea2f0af4ba20075e63a5b3ca8c41eb9 (full diff mode, 25 files, +2634 -15). No formal Approve exists on this head; prior-reviews.md shows only COMMENTED reviews from @david6666666 on older commits and no outstanding CHANGES_REQUESTED.
Blockers
-
Performance campaign gate is still opt-in, but #606 accepted it as default-on. The accepted first-phase scope in
decisions.md(#606, 2026-11-25T15:01:13Z) includes a campaign-start gate that is default-on for performance. At head,--intakeis an optional flag oncampaign start(src/inferrsi/apps/cli/arguments.py:186-188), and the PR body's remaining-work list says performance campaigns started without--intakecurrently warn and proceed. Required: performancecampaign startrefuses an incomplete intake by default, with a tested, explicit opt-out only if the owner decides on one, plus regression tests for the default path. -
Knowledge-model policy is not satisfied for this head.
.github/knowledge-model-policy.jsonprotectssrc/inferrsi/knowledge/data/skill_library/**(lines 4-5) and namesapproval_owners: ["Dong1017"]withindependent_approvers: [](lines 48-49). The PR declareshuman_only: falsewith Claude Code and Codex as material authors, and the performance specsrc/inferrsi/knowledge/data/skill_library/tasks/task-performance/intake.jsonis at head under that protected path. No knowledge-authorship exception forcebe9271is recorded indecisions.md. Per the repository precedent on #518, Dong-bot does not post this grant; it needs an exact-head grant from the approval owner by hand, or the protected-path changes need to be separated from this PR. -
Required evidence is incomplete: the full diff was not reviewed. The 146 KB
pr/diff.patchcould not be opened in this session, so I have not verified the 25-file change set. Not verified: that no skills-route change (#606 §3 is excluded by Dong1017's decision) is in the diff, the four canonical library paths the skill-eval bot lists, andtests/apps/test_task_intake.py. A PASS needs that evidence.
Earlier findings (read at head, not executed)
- Execution bounds (resolved by reading). Numeric task-input/v1 fields go through
_coerce→task_input.field_value_problem(src/inferrsi/apps/cli/intake_contract.py:274-281). That check runs forset_fields(:370),answer(:711) andreconcile_record, which reopens older out-of-range values (:329-339).countrequires at least 1 andminutesrequires 0 < value ≤ 7 days (src/inferrsi/apps/cli/task_input.py:267-274). Repetitions=0, rounds=-1 and max_minutes=-5 should therefore be rejected for new answers and loaded records. - P95/P99 conflict loop (resolved by reading). An explicit
answerreplaces the conflicting entry with the chosen value and status (intake_contract.py:709-716). Repeated imports cannot reselect an open choice (:392-399), which is intentional. An Issue value settles a field only when its reference is selected (:309-317).
Not verified here
- No tests were run. The PR body's counts (304 focused, 54 intake, 7,432 passed / 136 failed full suite) are not reproduced. The skill-eval bot still lists the
tools/build_skill_index.py --checkrun as not executed. - The Codex Desktop transcript and the campaign warn path were not traced beyond the PR body.
Next step
Author pushes the default-on campaign gate and the protected-path resolution, with the evidence above. Dong-bot will re-read the new head after the push (the next synchronize after a DO NOT PASS triggers an incremental re-check). Knowledge-policy grants remain with the owner by hand.
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for zengchuang-hw.
回应本轮检视邀请。首审:base 51e475ad077ec88d60f9e8c561dc0415ca9855aa → head cebe9271fea2f0af4ba20075e63a5b3ca8c41eb9。
阻塞项与验证
- 未提供审批记录时仍会启动性能 campaign。 CLI 启动分支 在未传入
--intake时只打警告,然后调用_optimization_session(args)。传了记录但记录未通过才会提前返回。这个行为不满足 #606 已接受的默认开启。请在创建 campaign 前拒绝没有有效批准的性能启动。 - 记录内的修订审批没有绑定到实际启动。 审批卡 把 revision 和确认条件写进卡 ID,这能区分不同版本的记录;但 启动校验 只评估传入记录及其引用,没有比较实际 invocation,启动后才保存
intake.json并把 digest 返给调用者,没有写入冻结plan/。请在创建前比对实际使用的目标、质量门槛和执行约束,将批准的 digest 写入计划。匹配的预审批应能无交互启动;缺失、过期或与实际参数不匹配的审批应在创建前停止。
实际验证:从当前 head 提取原始 CLI 分支,以本地 Python 和替身 launcher 执行三条路径:无记录到达 launcher;记录返回 ready 时实际启动参数未进入校验;记录返回 blocked 时未启动。另静态核对卡 ID、校验调用与 digest 写入位置。未独立重跑桌面问答、安装包、整套测试或真实性能 campaign。
Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
…igns Compare the staged AB/BA or service plan with the approved brief before creating the session. Freeze the receipt and enforce the numerical quality and independent final gates. Agent-assisted-by: Codex / gpt-6.2-astra [effort=xhigh] (author) Signed-off-by: jiangkuaixue123 <[email protected]>
|
Codex, acting for @jiangkuaixue123. @Dong1017 @zengchuang-hw 请复审
完整桌面问答记录和本轮 CLI 复现结果已保留在 PR 描述。专项结果为 232 passed、1 skipped、54 subtests passed,独立安装的 wheel 检查验证了 777 项资源。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Re-review of base 51e475ad077ec88d60f9e8c561dc0415ca9855aa and head c80959595141ba5b1d3cfd3824fc1edcfdf00764, after the DO NOT PASS on cebe9271fea2f0af4ba20075e63a5b3ca8c41eb9.
Why this is not a PASS yet
pr/meta.jsonhasdiffComplete: false, so the seededpr/diff.patchdoes not show the whole change. The file is about 154.5 KB and my read tool would not return it in full, so I did not review the hunks. I cannot PASS a change whose full diff I have not seen.- Required to PASS: a complete diff for this range (
diffComplete: true), plus CI and test results onc8095959. Dong-bot will re-read after the author pushes or once the complete diff is seeded.
Status of the cebe927 blockers (checked against head source, not diff hunks)
- Default-on performance gate: resolved in source.
src/inferrsi/apps/cli/__init__.py:873-879routes projectcampaign startthroughcampaign_intake.start.src/inferrsi/apps/cli/campaign_intake.py:108-112returnsblockedwithmissing_intakewhen--intakeis absent, before any campaign is created. The help text atsrc/inferrsi/apps/cli/arguments.py:186-188matches. Regression tests not run. - Approval not bound to the actual launch: resolved in source.
campaign_intake.py:136-144compares the staged plan settings (_execution) and the approved conditions with the approvedcampaign_launchbefore_initialize. Mismatches returnlaunch_conflictorlaunch_changed.campaign_intake.py:167-170writes the receipt toplan/intake-<sha256>.json.intake_contract.py:518-523foldscampaign_launchinto the brief ID, so a changed launch needs a new approval.intake_contract.py:347-349(_bump) popsbrief_decisionon every revision bump, andintake_contract.py:335-343reopens out-of-range older values, so a corrected record needs fresh approval.
Reviewer asks, checked in source
- Execution bounds (david6666666, cebe927).
_coerce(intake_contract.py:274-281) applies thetask-input/v1validator to integer/number fields.task_input.py:267-270requires a positive integer forcount,task_input.py:271-275requires minutes in (0, 7 days], andtask_input.py:276-280requires a nonnegative percent.task-performance/intake.jsonmapsenvironment.repetitions,environment.rounds,environment.max_minutesandacceptance.min_improvement_pcttotask-input/v1(lines 236-252, 300-307 and 50-57). New answers go through_coerceatintake_contract.py:713. Loaded records are rechecked inreconcile_record(intake_contract.py:326-339). - P95/P99 conflict (david6666666, cebe927).
answer()replaces the conflicting field with the single answered value (intake_contract.py:711-716), so an explicit card choice resolves it. Repeated imports only append candidates (intake_contract.py:392-399). Source-level only; not run. - Knowledge-model policy. I am not repeating the cebe927 blocker. The declaration names the current head and two admitted models at
xhigh(.github/knowledge-model-policy.json:29-40;docs/knowledge-model-policy.md:91-103). No exception is requested, so the exception approval-owner rule does not apply. This is declaration compliance only. I did not see theknowledge-model-policystatus result.
Not verified in this pass
- The full diff and the hunks outside the files cited above.
- Tests, ruff, the installed-wheel check, the 136-failure baseline comparison, and the CI result for
c8095959. - Current-head reviews from zengchuang-hw and david6666666. Their formal reviews are on
cebe9271, so they have not re-checked this head.
Keep executable intake approval in Apps, stage and initialize through Manager, and apply the approved quality and final performance gates through Evaluator. Honor the original scoring scale of retained service plans without a declared unit. Agent-assisted-by: Codex (author) Signed-off-by: jiangkuaixue123 <[email protected]>
|
Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw @amy-why-3459,请复审
@Dong1017,PR 正文的知识作者声明已绑定这个提交,并保留了实际作者信息和六个受保护路径。请按知识准入例外流程独立裁定本次例外请求。例外裁定和正式代码 Review 分别记录。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Reviewed base ba4637e and head 2a53479 (full base..head; the requested range from the 9541e17 increment is included in this head).
Blockers (no PASS possible on this seed):
- Diff not complete.
pr/meta.jsonhasdiffComplete: false, so the seeded diff does not show the whole change. Per the review procedure I cannot PASS on it. The segmented patch links on thejiangkuaixue123fork are not evidence the host has seeded, so I did not treat them as covering the change. Needed: a complete seeded diff for ba4637e..2a53479, or the host confirming that the per-file patches assemble to the head tree. - Seed not fully readable in this run.
pr/diff.patch,pr/body.mdandpr/prior-reviews.mdwere too large for my read tool, so I could not weigh current-head Approves or outstanding Request changes on 2a53479. The zengchuang-hw Approve in the thread is on 1a00554 and does not carry to this head.
Checked at head 2a53479 (src/inferrsi/apps/cli/campaign_intake.py, src/inferrsi/apps/cli/task_intake.py):
campaign_intake.pylines 130-153:startcompares the approvedcampaign_launchwith the frozen plan through_conflictsbefore_initialize(line 154), for bothabbaandservice_reuse. A mismatch returnslaunch_conflictwith execution not started. This matches the pre-start check described in the thread.campaign_intake.pylines 100-106: for AB/BA, theacceptance.baseline_revisioncomparison replaces theidentity(...)value withservice_revision(...)when the repo has.git. I did not find a defect in it, but the author should explain why this is equivalent to the approved value and point to the test that covers it.task_intake.pylines 17-33 and 55-68: packaged spec loading and atomic record write, unchanged in substance by this head as far as I can tell from the read.
Not verified here:
- The claim that the independent final still applies the approved performance and quality gates. I did not read the final-run code.
- The execution-bounds fix (
e976c1d1), the placeholder-unit fix (abe02d32), the P95-to-P99 stale-card path and the 0.005 fraction conversion. I could not read the diff for these. - Test and CI results. I did not run tests, and the author-reported local and CI results are not independently verified.
Knowledge-authorship exception: this review does not rule on the exception request, and it does not change the code verdict. Dong-bot does not grant knowledge-authorship exceptions on its own (see the #518 and #718 decision records), so that ruling needs the owner's by-hand record.
Next: I will re-read after the author pushes or after a complete diff is seeded. A PASS needs the complete diff, a current-head review record check and the verified points above.
|
Codex, acting for @jiangkuaixue123. @Dong1017,补充 请安排从上游 |
Skip self-gain comparison when the baseline is still selected, then apply the frozen performance target to the new final measurement. A passing target proceeds to independent quality validation. Agent-assisted-by: Codex (author) Signed-off-by: jiangkuaixue123 <[email protected]>
|
Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw @amy-why-3459,请复审当前提交 这轮修正 service-reuse 的独立复测。保留基线时无需与自身比较收益,仍要用新测量核对任务书中批准的目标。测试基线为 100,越低越好。绝对目标 ≤110 继续做独立质量检查,≤95 或要求改善 1% 则记录 分段补丁 包括相对 @Dong1017,知识准入例外也已刷新到 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Reviewed base ba4637e and head 9799392. Scope is the incremental range 2a53479..9799392 (diffMode: incremental, diffComplete: true): 3 files, the service final target gate for a baseline-selected final.
No code defect found in this increment. The hold is on evidence I could not obtain in this run.
Verified in the increment:
src/inferrsi/harness/evaluator/_service.py:68-109: withparent is Nonethe objective loop is empty, sopassedis True and the target check at lines 100-108 now runs againstinitial. The parent-not-None path is unchanged.src/inferrsi/harness/executor/serving/_attempt.py:217-224: the gate is evaluated whenparent is not None or target is not None, and the default pass is kept when there is no target.src/inferrsi/harness/evaluator/_service.py:190-208: a passed final gate continues to the quality check. A failed gate recordsfinal_performance_target_not_met.tests/harness/test_project_objectives.pycases (objective()defaults to minimize): absolute 110 passes, absolute 95 fails, relative 1% fails. These matchmeets_targetinsrc/inferrsi/harness/evaluator/_project.py:37-48.- New parametrized test
test_baseline_selected_final_checks_target_without_self_gainintests/apps/test_project_service_reuse.pyusesapproved_startfromtests/fixtures/campaign_intake.py. Its fixtures were read at head.
Why not PASS:
- Formal review state is unverified.
pr/prior-reviews.mdis a single 41 KB line and could not be read in full, so I cannot confirm the current-head Approve or CHANGES_REQUESTED list. The thread shows Dong1017's review on 2a53479 (pullrequestreview-6082797546) and amy-why-3459 raised blockers the author says were fixed in e976c1d and abe02d3. I have not verified those fixes or any formal state against them. - Head CI is unconfirmed. The author's latest comment says Linux Ready CI for the lifecycle regression is still running on 9799392. The 107 focused tests are author-reported; I did not run them.
- Knowledge-authorship exception is not granted. The PR's knowledge-model-policy block declares a Codex entry with model and effort
unknown. Per the recorded #718 decisions, that is not admitted without the owner's by-hand knowledge-policy approval, and Dong-bot does not post it. This is a merge gate separate from the code verdict and stays open.
Not verified here: the rest of the 48-file PR beyond this increment; the AB/BA launch-check question from 2a53479, which the author answers in the thread but which this increment does not touch.
Non-blocking: with no parent, gate["metrics"] is empty, so the final's performance record carries no metric values. Adding the measured value to the target record would make the final assessment easier to audit.
I will re-read after the author pushes, or on the next @Dong1017 re-review mention, once the prior-review state and head CI are confirmed.
Reuse the project evaluator module for the unit helpers shared by ordinary and service quality scoring. The Harness API retains its existing dependency graph. Agent-assisted-by: Codex (author) Signed-off-by: jiangkuaixue123 <[email protected]>
|
Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw @amy-why-3459,请复审 macOS 全量对照发现 Harness API 的导入依赖检查有一项新增失败。质量单位换算现在复用现有 evaluator 模块,公共 API 的导入图检查已通过。108 项本机专项测试通过,包括该检查、独立复测目标、task intake 和质量评分。最新提交构建的 wheel 在隔离环境核对了 777 个安装资源。当前 Linux Ready CI 可逐段读取的完整 diff 和单段增量 已用各自基线重建并核对 Git tree。请通过 GitHub Review 在当前提交记录正式结论。@Dong1017,PR 正文也已把独立的知识准入例外请求绑定到这次提交。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Dong-bot (authorized delegate). Reviewed base ba4637e2b81bba036a62be0da35353559b7284d9 and head 944e6cb90a2411ed17692c3893ebec4743481e51. Incremental range requested in the thread: 97993926..944e6cb9.
This is not a code-defect finding. I could not complete the diff review and the required evidence at this head is missing, so I cannot PASS.
Blockers
-
Diff not fully visible to this review.
pr/meta.jsonhasdiffComplete: false. The seededpr/diff.patch(about 155 KB) could not be read in this session, so I could not check the 47-file change set at944e6cb9against its base. The author's segment links are not in the seed. PASS needs a complete diff seed forba4637e2..944e6cb9(or the complete Git diff at that head) that I can read in full. -
Knowledge-authorship exception not granted on this head. The PR body's
knowledge-model-policyblock declares a Codex contribution withmodel_id: unknownandeffort: unknown(the Harness integration session). It requests an exception for six protected paths, including the canonicaltask-router,task-day-0andtask-performanceskill sources, the twointake.jsonfiles, and_compiled/_provenance.jsonandinputs.json. Dong-bot does not grant this. The same ruling applies here as on #718 for an unknown Codex declaration: #718 ruling, later repeated on head baa4148f, and #518. To clear it, the owner needs to give a by-hand knowledge-policy approval on exactly944e6cb9, or the unknown entry must be re-authored with admitted declarations. I did not check the two named models (claude-fable-5-2,gpt-6.2-astraatxhigh) against.github/knowledge-model-policy.json, and this ruling does not depend on that. -
Required skill-source evidence is missing at this head. The skill-evaluation plan on this PR (github-actions, 2026-11-26T03:08:39Z) lists
python tools/build_skill_index.py --source-revision 6f5775d29d3546732113900ef811d60a5943aa62 --checkas not run. The body's index, coverage and SearchSpace match is for the preceding integration commit, not944e6cb9. The head changes 4 canonical skill-library paths and 2 generated projection paths, so the check needs an exit code and full output at944e6cb9. -
No current-head formal approval is visible in the seeded thread. The only Approve in the thread is zengchuang-hw on
1a005543, which the author says binds only that commit. Later reviews were requested on2a534795and944e6cb9, but no Approve on944e6cb9appears in the thread.pr/prior-reviews.mdcould not be read, so this is unverified. If a current-head Approve exists, it should be reflected in the next review.
Checked
pr/body.md,pr/thread.md,pr/trigger-comment.md,pr/meta.json,pr/head.sha(944e6cb9, matching meta and body), thereview-prskill and both reference documents, anddecisions.md.- PR #706 metadata via
read_issue: head944e6cb9, basemain, 47 files (+3838 −72),diffComplete: false. - The author's claims about the execution-bounds fix (
e976c1d1), placeholder-unit rule (abe02d32), AB/BA and service-reuse launch checks, and the import-graph fix are recorded in the thread. I did not verify them from code.
Not verified here
pr/diff.patchcontents,pr/prior-reviews.mdcontents, CI status for944e6cb9(Linux Ready CI run 45931812710), local test results, and code at head (no repository reads were needed for this verdict).- Desktop replay and model/device acceptance: the author states neither has been run on
944e6cb9.
Non-blocking follow-ups
- Governing #606: the first-phase scope is accepted (scope decision), but implementation and acceptance owners are still unnamed. This review does not accept #606.
- Desktop replay and model/device acceptance at
944e6cb9(acceptance evidence, not code review).
Next step
I will re-read after the author pushes. For a PASS, the review needs: (1) a complete diff seed at the new head, (2) the skill-index check result at that head, (3) the owner's by-hand knowledge-policy approval or an admitted re-authoring for the unknown Codex entry, and (4) no unresolved blockers.
|
Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw @amy-why-3459,补充 下面是完整的 Current review incrementdiff --git a/src/inferrsi/harness/evaluator/__init__.py b/src/inferrsi/harness/evaluator/__init__.py
index 76df2262..09fa0e0a 100644
--- a/src/inferrsi/harness/evaluator/__init__.py
+++ b/src/inferrsi/harness/evaluator/__init__.py
@@ -16,8 +16,7 @@ from ._measurement import (
relative_mad,
validate_mechanism,
)
-from ._project import assess_project, inspect_project_step, project_steps
-from ._quality import quality_unit_declared
+from ._project import assess_project, inspect_project_step, project_steps, quality_unit_declared
from ._service import (
ServiceStageDecision,
aggregate_service_measurements,
diff --git a/src/inferrsi/harness/evaluator/_project.py b/src/inferrsi/harness/evaluator/_project.py
index 2510c5e9..c4a25920 100644
--- a/src/inferrsi/harness/evaluator/_project.py
+++ b/src/inferrsi/harness/evaluator/_project.py
@@ -2,13 +2,13 @@
import json
import math
+from decimal import Decimal
from pathlib import Path
from statistics import median
from inferrsi.harness.records.artifact_primitives import sha256
from ._measurement import explain, paired_statistics, profile_evidence, validate_mechanism
-from ._quality import quality_score_in_unit
def project_steps(settings: dict) -> list[dict]:
@@ -48,6 +48,28 @@ def meets_target(target, *, baseline, candidate, direction):
return (change if direction == "maximize" else -change) >= target["target_value"]
+UNSPECIFIED_QUALITY_UNITS = ("", "unknown", "unspecified", "n/a")
+
+
+def quality_unit_declared(unit) -> bool:
+ return isinstance(unit, str) and unit.strip().lower() not in UNSPECIFIED_QUALITY_UNITS
+
+
+def quality_score_in_unit(score, reported_unit, approved_unit):
+ """Return the score in the frozen unit; only proportional scales can cross units."""
+ if not (quality_unit_declared(reported_unit) and quality_unit_declared(approved_unit)):
+ raise ValueError("quality_unit_mismatch")
+ if reported_unit == approved_unit:
+ return score
+ scales = {"%": 2, "percent": 2, "fraction": 0, "ratio": 0}
+ if reported_unit not in scales or approved_unit not in scales:
+ raise ValueError("quality_unit_mismatch")
+ converted = float(Decimal(str(score)).scaleb(scales[approved_unit] - scales[reported_unit]))
+ if not math.isfinite(converted):
+ raise ValueError("quality_unit_mismatch")
+ return converted
+
+
def inspect_project_step(
directory: Path, settings: dict, definition: dict, execution: dict,
) -> dict:
diff --git a/src/inferrsi/harness/evaluator/_quality.py b/src/inferrsi/harness/evaluator/_quality.py
deleted file mode 100644
index 4c4d0a54..00000000
--- a/src/inferrsi/harness/evaluator/_quality.py
+++ /dev/null
@@ -1,25 +0,0 @@
-"""Interpret scorer output in the unit declared by the frozen quality gate."""
-
-import math
-from decimal import Decimal
-
-UNSPECIFIED_QUALITY_UNITS = ("", "unknown", "unspecified", "n/a")
-
-
-def quality_unit_declared(unit) -> bool:
- return isinstance(unit, str) and unit.strip().lower() not in UNSPECIFIED_QUALITY_UNITS
-
-
-def quality_score_in_unit(score, reported_unit, approved_unit):
- """Return the score in the frozen unit; only proportional scales can cross units."""
- if not (quality_unit_declared(reported_unit) and quality_unit_declared(approved_unit)):
- raise ValueError("quality_unit_mismatch")
- if reported_unit == approved_unit:
- return score
- scales = {"%": 2, "percent": 2, "fraction": 0, "ratio": 0}
- if reported_unit not in scales or approved_unit not in scales:
- raise ValueError("quality_unit_mismatch")
- converted = float(Decimal(str(score)).scaleb(scales[approved_unit] - scales[reported_unit]))
- if not math.isfinite(converted):
- raise ValueError("quality_unit_mismatch")
- return converted
diff --git a/src/inferrsi/harness/evaluator/_service.py b/src/inferrsi/harness/evaluator/_service.py
index b950eb4b..a6fcd199 100644
--- a/src/inferrsi/harness/evaluator/_service.py
+++ b/src/inferrsi/harness/evaluator/_service.py
@@ -5,8 +5,7 @@ from decimal import Decimal
from statistics import mean, median
from ..records import service_io
-from ._project import meets_target
-from ._quality import quality_score_in_unit
+from ._project import meets_target, quality_score_in_unit
def _metric_value(document, key): |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮邀请。固定范围 ba4637e → 944e6cb。
对照本人上轮结论及这一轮 2a53479 → 9799392 → 944e6cb。静态追查 AB/BA 与 service-reuse 继续使用已批准的 intake 执行条件;P9 接线把会话归 Manager、质量判断保留在 Evaluator。97993926→944e6cb9 把比例换算移入既有 evaluator 模块,未改变算法,已无额外 _quality 模块入口。
独立运行本 head 提取的换算和 final gate:0.005 fraction→0.5%,反向保持比例,不明或不相容单位拒绝。保留基线时不要求与自身比较收益,但 100 对绝对目标 110 通过、95 不通过,对相对改善 1% 不通过。未独立运行完整会话、wheel 或硬件;该结论不代替 #606 的责任确认或验收。
Derive the attempt gate from the frozen plan and reference snapshots in one evaluator function. Both the executing attempt and the retained receipt validator use it, including final attempts that retain the baseline. Agent-assisted-by: Codex (author) Signed-off-by: jiangkuaixue123 <[email protected]>
|
Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw @amy-why-3459,请复审 上轮 Linux CI 的两个 Python 版本都遇到同样的 4 个服务复测失败。执行层应用了已批准的性能门槛,但归档校验仍按旧规则重算。现在两条路径都调用同一个 evaluator 函数,从冻结任务书和回执重算。通过和未达标的结果都能重放,篡改判定会被拒绝。 本机 108 项专项通过,包含真实回执文件的重放回归。Ruff 以及技能索引、覆盖率和 SearchSpace 检查均通过。最新 Linux 验证 正在运行。三段增量与完整 diff 均已重建并核对 Git tree。 谢谢 @zengchuang-hw 在 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Reviewed base ba4637e2b81bba036a62be0da35353559b7284d9 and head e3438caa9e2414b39a7526a9de59efa50e5a9459. Incremental range per the author: 944e6cb9..e3438caa. The formal Approve on 944e6cb9 does not carry to this head.
Blockers
- The full diff is not reviewed.
pr/meta.jsonhasdiffComplete: false, and the seededpr/diff.patch(about 155 KB, 48 files, +3899 −87) did not load in this run. I could not trace the AB/BA executor, service-reuse evaluator,campaign_intake.py, or the test changes against the diff. WithdiffComplete: falsethis review cannot PASS. - Knowledge-authorship exception is not granted. The head declares six protected paths under
src/inferrsi/knowledge/data/skill_library/, includingtasks/task-performance/SKILL.mdandtasks/task-performance/intake.json. One declared author is Codex with model and effortunknown. The exception request is not granted here. This follows the recorded decisions for #518 and #718: approval of this kind stays with the owner's by-hand exact-head knowledge-policy approval, or the author re-declares with admitted models. This is a separate ruling from the code review, as the author asked. - No current-head formal approval is visible. The thread ties the zengchuang-hw Approve to
944e6cb9and states that earlier commits are not carried. I could not readpr/prior-reviews.mdin this run, so this rests on the thread. - Head CI is not finished. The author states that Linux verification on
e3438caais still running.
Verified
pr/head.shaandpr/meta.jsonboth matche3438caa9e2414b39a7526a9de59efa50e5a9459, with baseba4637e2.src/inferrsi/harness/evaluator/_project.pylines 1–80 ate3438caacontainquality_unit_declaredandquality_score_in_unit, as the author describes. The unit scales (%/percent= 2,fraction/ratio= 0) and the placeholder-unit rejection are present.
Not verified here
- The full diff, and every changed path listed as uncovered by the skill-evaluation plan (48 paths; 0 comparisons selected).
- Tests, ruff, and the skill index, coverage, and SearchSpace checks. The author reports these as passing at
e3438caa(108 focused tests). I did not reproduce them. - Desktop replay and model/device acceptance, which the author states have not run on this head.
I will re-read after the author pushes, or after the owner records an exact-head knowledge-policy approval. A PASS needs the full diff in view, a finished current-head CI run, the knowledge gate resolved, and no outstanding blockers.
|
Codex, acting for @jiangkuaixue123. @Dong1017 @david6666666 @zengchuang-hw @amy-why-3459,当前提交 @Dong1017,当前提交的必需检查 |
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮邀请。固定范围 ba4637e → e3438ca。
对照上一轮 944e6cb9。这次五文件增量的关键是执行和 evidence replay 共用 assess_service_attempt_performance。两处分别传实际 pending 与留存 record,同用冻结 plan、role、parent 和 initial。独立运行提取的同一判定函数:初始基线不额外比较,保留基线的 final 在绝对目标 110 通过、95 拒绝,相对改善 1% 也拒绝;失配不能在结算时被重算成通过。另静态核对篡改 performance receipt 的回归断言。未重跑完整服务或设备。此 APPROVE 仅为工程检视,不是知识准入例外;例外仍由指定维护者按受保护路径和精确提交另行决定。
Governing Issue and delivery slice
Refs #606
Implements the accepted first-phase task intake for performance and Day-0. The existing primary-task router selects the task. The host asks about missing or conflicting settings and records where each answer came from. A performance campaign requires a quantified final target, a named quality benchmark with a numeric gate, and a separate approval of the staged launch. Both AB/BA and service-reuse retain the approved intake receipt.
The issue author requested this implementation for review. The scope decision records the accepted direction. The issue still needs named implementation and acceptance owners. Anchors touched: none.
Review at
e3438caaba4637e2. Manager stages and initializes campaigns. Evaluator applies the approved performance and quality conditions. Historical service records without a quality unit keep their native scoring scale.944e6cb9. Previous Linux CIFAIL / final_performance_target_not_met.944e6cb9. The current full diff and latest increment reconstructe3438caa.Verification
e3438caapassed. Linux Python 3.10 and 3.11 each reported 7,802 passed, 93 skipped, 1 deselected and 677 passing subtests, including the four service-final tests that failed on944e6cb9. The two installed-package jobs, browser tests and both advisory host jobs passed. The required knowledge declaration check is still awaiting the requested owner exception.944e6cb9, the isolated wheel verified 777 resources and repeated the installed CLI stale-card sequence successfully.Knowledge authorship declaration
The current head requests review of a knowledge admission exception by the designated owner.